import request from "@/utils/request";

export function getUserList(params) {
    return request({
        url: '/user/getUserList',
        method: 'post',
        params
    });
}

export function deleteUser(params) {
    return request({
        url: '/user/deleteUser',
        method: 'post',
        params
    });
}

export function updateUser(params) {
    return request({
        url: '/user/updateUser',
        method: 'post',
        params
    });
}

export function registUser(params) {
    return request({
        url: '/user/registUser',
        method: 'post',
        withCredentials: true,
        params
    });
}

export function loginUser(params) {
    return request({
        url: '/user/loginUser',
        method: 'post',
        withCredentials: true,
        params
    });
}

export function getUserById(params) {
    return request({
        url: '/user/getUserById',
        method: 'post',
        params
    });
}

export function getUserByToken(params) {
    return request({
        url: '/user/getUserByToken',
        method: 'post',
        params
    });
}

